Fixed the Javascript - it now displays the map on the index page.
Updated.