allow reopening file by detaching to sharejs