Update grant.js

Usage of grantResponse access as optional.