Add bootstrap and jQuery.
Some reorganization and test code.