change txt to js