enable replacing artificial intelligence service calls with new javascript library instead