changed javascript