Move front-end stuff to a pretty file.