Rename handleReg to handleReg.js