Add AMD support
Merge pull request #6 from seanparmelee/master

Add AMD support
0.3.0
Automatically rewritten for npm.