transfering js to js files