Moving API endpoints to JS because volume wasn't working right.