Added Head/Script and support for attributes.