update js script var name - bug