neater jquery check