first example about the javascript of graphic computation