alter txt to js