Javascript Redirect on page instead of app