fix jshint-warnings for imported code + disable code not applicable for environment