Change es6 source files in npm distribution to use .js extensions. Closes #2447
Translate AtScript in examples/e2e_test to TypeScript. Closes #2294