working with really weird behavior on the ipad when writing to an html5 canvas