Get rid of jquery dependency