refactored map page js and added an alert to show the ID of the buoy clicked