update npm dependencies and fix JSLint-compliance