added DOM helper function
set width and height of canvas
demonstrate how brownie can be updated