remove some unused css and js file. add some comments on the js. finalize the mechanism of constructing domFragments using a simple template