Change textfiles to .js code