Math exercises generator, php, js