Issue #32 feature added

Supports AMD-style (RequireJS) loading. Simple define() function wrapper
around the existing global window object assignments.

Tested via RequireJS 2.1.2 on Chrome 23 and Firefox 17.