for generating equations in the browser