Checking jquery functionality