Updated type2Anim.js

Added legend (still bad formating)
Added Play/Pause functionality