editing template for creating a directive with grantjs