Tidied up organisation of JS files and adapted readURL.js to correspond with new changes introducted in readFile.js (should probably refactor these changes out to one, neutral location...).