a simple ai.js runner