Code clean-up. Comments added for register.js and main.js