convert animation script to tags