simplified aha.js, made text version