Export csv tsv

Export menu now supports CVS, TSV, and JSON.

Also fixed JS to work in IE7