Replacing a delete JS line