Remove jquery

It looks like a lot of crap but it's mostly just moving things around.