add ai.js
fix
split header and util