element pool with async consumption
replace "this" by explicit var in terminal.js

easier grep, less error prone on refactor, more readable