fix app.js for local deployment