Fixing AMD registration

Syntax to register as an anonymous module was incorrect.  The two-argument version of define only works when the first argument is an array of module ID's (strings) not objects.
Fix AMD compatibility with almond loader

Wrapping define in a function so it is compatible with almond
Fix AMD compatibility with almond loader
Merge pull request #19 from jlouns/patch-1

Fix AMD registration