Improve input code, add player model to store state, add debug output to index page to show current state, add local jquery and bootstrap theme.