Added support of AMD and NodeJS environments

Hi, it would be great if you can extend your great library with support of NodeJS and AMD, cause I'm using it in NodeJS environment with browserify. So I think this can help others too.

Sincerely,
Anthony