Simplifying the sharejs call