Animation with webGL and script language