working on getting the JS to graph a function