Fixing lint errors

Yes, I've made that change and also fixed similar issues in js/index.js