Fix server.js to load correct API paths