Rwritten dlb.js for new config
Added event.js to handle the actual events happening.