Generate Keyframe through JS