Added more JSHint settings

- indent: 2 -- 2 spaces per indent
- trailing: true -- no trailing spaces
- eqeqeq: true -- warn on '=='
- newcap: true -- capitalize constructors
- curly: true -- surround blocks in curly braces