Restructured html and js files.