Update browserOverlay.js

syntax error line 15, also made some slight changes