tests and removal of jquery dependancy