added app.js
basic stuff with a few tests