more javascript friendly
javascript syntax fix