Langton's ant for the HTML5 canvas