widgets.js just the converted code

many test files still not converted
fixing image function in widgets, more fixed tests
more doc on lineGraph function
documented barchart, and fixed grouped bars