EJS has build in GUI element which alow you enter function and EJS will generate the function plot it for you!
Please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=805.0]Mathematic function F(x), F(y) plot[/url]