Minor big fix - was erroneously overriding local variable 'html'