[browser library] Fix error in strict mode.
Merge pull request #2437 from waywardmonkeys/strict-fix-for-library-browser

[browser library] Fix error in strict mode.