migrate overall skeleton to angularjs
modify <pre> style
forgot to style code and latex in output & small style modification
reduce code indent
refactor: extract scroll sync and enml renderer to separate ng services