Real time drawing using HTML5 Canvas