Clean up based on jslint feedback. Tabs to spaces.