Made deferreds consistent in post.js