Generate grid via JavaScript and click does work

Though grid via vim macros was nice, it is easier to change if
generating with JavaScript, so doing that now. Also changing background
via class change on click.