Create CSS3 animations with @keyframe from javascript