Update API.js

Updated API script to try and get some output, as the client ID is not being parsed into the URL at the moment.