add jquery dependency and implement new funt