#283 Registration UI update

Two types of style nit in this function:
- Space before `{`:
- Spaces around operators: `sum += foo()`.

Also, provide a radix to `parseInt`, just to be explicit: `parseInt(foo, 10)`. More detail: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt