Addition of DOM binding code to index.htm. This is intentionally separate to application code