Revert "added functionality in APIRequests.js"

This reverts commit 43f7682d1e47a3e29f7997dc9deba3fdb1f314f7.