Update bridge.js

Fix unintended modifications.