rename JS memory