changes demo page to index.html
Use querySelector instead of finding elements by id.
renames static variables
moves partial view to constructor function.