Has anyone created a back button that works?

The back button does NOT work. We have had to use HTML/JS to accomplish the task. Hopefully moe can get it fixed as it would be much easier to use.

JS:
$(’.back-btn’).on(‘click’,function(){
window.history.back();
});