Added js function exportCase