cleaned backend.js