Fix PeerLocation.js to work in strict mode