A HTML5 canvas based Jacascript API for statistical graphics