Javascript chess library