Javascript library that can be used to emulate chess games