[javascript] Export javascript data to CSV file without server interaction