Writes as much data as possible using the HTML 5 File API.