Create app.js

app.js reads json data and compiles and renders templates.
Pardon function names :). this is just an afternoon works.