added line on api.js to fix issue with * character