more javascript code
finished with this