Add distance calculation functions
Fix jquery, get map distance calculating publishing