add hapi_view.js to repo

Merging first commit to master