update location via js instead of reloading page