Removed un-used variables, poor jsdoc syntax, mis-typed return syntax according to InspectionJS/JSLint.