javascript for zebra invite code / registration