Cleaned up jQuery check