Add xhr requests to author.js and categories.js