Fix gist; add type attribute