added Javascript for export to excel