Added comments to client side register form javascript code