rename and redate js