Ashwin,Dileep | Fixing register.js javascript error