Merge pull request #280 from google/rsturgell

Fix small bugs in instrument.js
Add heap tracking mode to wtf-calls.