js registration works