added underscore js map to stop chrome complaining
drawing segments with editor