Refactor the code in 'bem-tools.js'
Refactor the code in 'enb.js'
Refactor tests