Switched order of JS