update the MyBeacon.js