A poor attempt at imitating latex with js and css.