Added AMD and nodejs support. Added grunt and jshint. Added doc string.