added javascript

also modified some errors in html and changed background white in css to
a closer gray