Add jsdoc task.
Add define to jshintrc.
Fix lint errors.