Open document using sharejs, and push it to the buffer