javascript animation demo setup