a javascript program for a exporting tables from a web page to csv or xm format