Attempted to satisfy the JSLinter gods.

Tabs converted to spaces, JavaScript cleaned up.