update AI.js add pipeline class