Port of EulerPy to Javascript!