Fix the frontend-dev with new api.js