[js] JSLint corrections + add use strict