Just some linting.  Missing semicolons, whitespace issues, optimizing if blocks...