Converted tabs to spaces, and started moving toward JSLint standards.