Made the jQuery check a little more strict.