Close #1

- Setup jshint config
- Fix global varaible bugs
- `$loadImg` with `poolName` fallbacks to `defaultPoolName` of `$imgPool`