decouple js from html
create fcn for looping point graphing
make createPoint fcn global