javascript animation for dom, canvas, svg