setup javascript to allow park swapping.