Migrate some more code to ES6 (1).

Review Request #10399 — Created Feb. 8, 2019 and submitted — Latest diff uploaded

Information

Review Board
release-4.0.x
3214766...

Reviewers

This change converts remaining non-test code in the models/ and
extensions/ directories to ES6.

Ran js-tests.