Javascript chess game for iPad and desktop browsers