Fix javascript errors detected by eslint.

Interestingly the output of compiledjs didn't change.