transfer chat and translate js file into /lib/