fixed error in loadfiles.js