Update library_browser.js

Implementing changes previously discussed: https://github.com/kripken/emscripten/pull/1996/files#r9437260