Fixes to js now that the linter is back