#16: Add app.js

Resolves #16.