Switched javascript positions