Applied JSHint fixes.