Add jshintrc
Refactor, use connect