html function: returns innerHTML of generated DOM