cleaned up and organized javascript in html and fixed the run button problems :)