Ran through JSHint. Some minor fixes.