Redirect to home url in javascript