jshint -> eslint & coding style update
Added handling of outdated JS mime types. Fixes #4