moved getTextFile back into server.js