wrote most of the js functionality

still working on the DOM element manipulation