Add config files

`.jshintrc` ensures consistent rules for code quality checks. You can also include such a check in Travis CI builds. http://jshint.com/

`.editorconfig` ensures files are formatted the same way, no matter what editor. http://editorconfig.org/