JavaScript API layer for Orion log service