Convert txt files to javascript strings