modified header of some html files, and created some js functions.