fixing js when transitioning to setup page