read, close methods work as expected. still hashing out the best way to get the data to be written from JS land...