Formatted the code to comply with JSLint.