Cleaning up repository
Main map: separating JavaScript functions into own file