Converted all indentation to spaces
Removed unneeded jshint switches and corrected two unused variables