Update LocateControl.js

fixes