Small snippet of JS to automatically type lines from a file.