[patch/js] Use strict and some linting