Introduce .jshintrc

Code quality assurance by linting source is very important in JavaScript development.

This PR adds the appropriate JSHint settings (.jshintrc) and fixes lint problems.

You can validate by the following commands:
```
npm install -g jshint
jshint src
```

Thanks!