An HTML5 canvas wrapper geared towards cross-browser consistency