use underscore in register.js

Change-Id: Id07a5dced6bec9343d7710615bb325e25ad6bfc4