Added jshint configurations.
Refactored algorithms.js to conform to some of the tightened jshint rules.