Separate out javascript for map and circles