Cleaning up file so that it passes most JSLint checks.