Tournament management library for nodejs or the browser