add grunt
add AMD support