Most of the code is for mapping css and js files to the relative raw pages.
Try your code on this page: https://raw.github.com/mrdoob/three.js/46c0a8434d3f269741a88...
And compare it with githtml on the /blob/ version of the same page: https://github.com/mrdoob/three.js/blob/master/examples/canv...