HTML5 Video Image Processing, canvas element, javascript