Fixed jQuery check