fix AMD support, add Gruntfile.js
version 1.0.4