Update API.js

Trying to isolate the problem with my search term integrating into the API search.