Removed depencency on jquery, all the jquery stuff used is now replaced with local js functions