Update JS code hints (including unit tests) to work with new language and
Editor APIs.