changes on geofencing.js