switched javascript page