HTML5 javascript Animation object