Pixel Animation in HTML5/Javascript