Update LocationManager.js

fix for plugin loading