bugfix in AMD wrapper, better (smaller) Gruntfile.js