more javascript

around 1/4 done