Update IDB.js

use require for EventEmitter