register as an anonymous AMD module, closes #2