js graphing calculator (work in progress)