Cleans up JSHint errors