Removed http: from API JS path