If you want to create it with EJS. Use _initialize() function to change the initial value, instead of calling _reset().
_reset() will reset everything, including all the variables.
You can find similar example at [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=427]Blackbody radiation curves for different temperatures [/url]