jtong - introduce all js file to SpecRunner.html and do some mini refactoring