Added ability to export data as CSV using JavaScript and flash