Move map JS into its own file. Remove unused underscore lib