Moved some js around.