Adding AMD compatibility and updating CanJS dependency.
Merge pull request #1 from daffl/amd-compatibility

Adding AMD compatibility