got rid of jquery dependency