Chinese remainder theorem solver for nodejs