changed "on(map" to "map.on(".
Removed reference to esri/tasks/locator, which was unsed.