fixes a lot of jquery problems, removes some not used js files and clean...

...up