added jquery stuff, moved d3 stuff to seperate file