Added JS and styling for pins