Jquery definition without failure