Adds build/index.html for gh-pages preview
Introduces OO javascript pattern