transfer everything to js