migration to nodejs