updated register.jsp and base.js