Add a .jshintrc file detect coding style flaws

For more information http://www.jshint.com/
Fix indent
Fix jshint errors
Merge branch 'feature/coding-style'