removed jquery dependency and created small API