Javascript changes to mapcheck.html