Update .define -> .register.

Latest CommonJS uses register instead of define.