copy the needed file for js to work