Fixed JSHint problems.