Tidied up code of map.html