Simple animation using HTML5 canvas