Getting app.js to work client-side