Update requests.js to use arguments rather than objects