Javascript library for PocketCiv game