define grape as amd module too