Refactored WebDraw class into function syntax rather than object syntax to allow for "use strict"