Move equilibrate to ai.js