Bug fix calculating lat and long of incidents in JavaScript version