more javascript, making form make more sense