Js to ext. file and arrow