changed getFolderName function in register.js