js api: temporary fix js api call