fixed a couple lint warnings

- removed unused variable client
- removed unreachable 'return' after 'throw'
- added semicolon
- host was defined twice
- assigning to undeclared variable syncProc
Merge pull request #52 from coderaiser/patch-1

Fixed a couple lint warnings