Promises interface should also be used for $.osf.post/putJSON