Jquery dependency issue