Fix bug in extend.  Convert to grunt