move some js around