adds jshint and editorconfig

I added jshint and editorconfig to detect possible bugsources.

I set the options of jshint pretty relaxed and started to clean `background_scripts/main.js`