Update the code to work with Daybed.js
Update with the latest version of daybed.js