Fixed jquery dependency bug