oldmap now works correctly in bridge.js