Fix up style of the checklist javascript.

The javascript code in the checklist didn't match a lot of our coding style.
I've cleaned things up a bit. Trivial change.