Update .define -> .register.
Merge pull request #1 from chrisabrams/master

Update .define -> .register.