register as an anonymous AMD module, closes #4