Made storing html a class function

This gives the chance for users to use the
function if they ever need to. They can even
extend it with callbacks.