gWidgets API for web programming