Fix pantilt borders, and js logic of the pantilt