added functionality in APIRequests.js

There was a problem the configuration options in git hub and i was able
to commit the last 2 commits from the name of Denis Rizov and his email
even when i was from my account and the person above didn't have
permission to contribute to our project