execite the javascript on back button