updated index, controllers, getdata, and server.js to implement updateclicks for recording clicks on every page.