Update the JS to match the new semantics.

Bug: LMS-1311