adapt .jshintrc and fix errors to be able to build without errors