fixed path in api.js