Simple js controls for equations