A wrapper for the CIC API in JS