migrate js