math equations with js