Fixed an issue where window.history.back() is not supported in webkit