Create app.js

App reads json data and compiles and renders templates at #here.
Pardon function names :). This is just an afternoon's work.