Changes to javascript & Excel Exportation logic