convert blob to object javascript