changes to map
seperate JS and HTML