Tidy up of file-splitter.js