Fixed problems which prevented JSHint from passing

Fixed problems:

- Modified .jshintrc to no longer strictly set es5 option as that is now default in JSHint
- Added quotes around captain-hook key
- Made typeof checks use identity (===) operators
- Moved jsLinks declaration to top of processJsIncludes() to prevent unwanted variable hoisting