javascript blob to string synchronous