JS client for the Empire API