$(document).ready(function(){
    if(history.length > 1 && document.location.pathname != '/') {
        $('#back').show();
    }
});

