Converts tabs to spaces and jshint cleanup

Converts spaces to tabs and performs cleanup per jshint recommendations.