Execute javascripts when history back