some more javascript stuff by your main man corey