added a method to modify the contents of a dom element - neater than 'type()' when you need to update something