Fixed whitespace errors.
Ported all of the front-end logic to React.