Frame-by-frame animations in JS made easy by using an interface similar to AS3's MovieClip