jshint settings and localStorage refactor