add grunt build and amd support