Fixed app.js: renamed noteService to apiService