finish separating 3 main HTML files and Javascript

build instructions in README.