Fun with html-driven animation