Finalized and simplified the object to make it render valid html