call bag.js via require
editor: ace.on('change') -> onChange