Several minor changes.

1. Ignore the value of JALANGI_ANALYSIS in record mode
in analysis.js.

2. Some comments / cleanup regarding top-level try-catch
in esnstrument.js.

3. Add some unit tests for monkey patching.  monkeypatch2.js
is not passing, but I'm not sure if we want to support it