“eme_location_map.js” Line 72, 73, 75, 76 and 77 end-of-line characters should be “escaped” with backlashes, because otherwise it is ambiguous whether following lines are parts of the same statements. Some JavaScript implementations assume that sequential lines without terminating semicolons should be concatenated, but others process code on separate lines as separate statements with or without semicolons. Backslash end-of-line “escape” characters insure correct interpretation in either case.
This:
var li_element = "<li id='location-"+item.location_id
+ "' style='list-style-type: upper-alpha'><a >"
+ item.location_name+"</a></li>";
var location_info = "<div class="eme-location-balloon"><strong>"+ item.location_name
+ "</strong><br/>" + item.location_address + ", "
+ item.location_town + "<br/><small><a href='" + events_page_link
+ joiner + "location_id=" + item.location_id + "'>Details<a></div>";
Should be:
var li_element = "<li id='location-"+item.location_id
+ "' style='list-style-type: upper-alpha'><a >"
+ item.location_name+"</a></li>";
var location_info = "<div class="eme-location-balloon"><strong>"+ item.location_name
+ "</strong><br/>" + item.location_address + ", "
+ item.location_town + "<br/><small><a href='" + events_page_link
+ joiner + "location_id=" + item.location_id + "'>Details<a></div>";