generate motion graphics on the web by javascript