turn txt to js.