Package daybed.js for npm.js

Uses npm.js to package daybed.

It still misses a gulp rule of some sort to generate the daybed.min.js file that should be used by lib authors.
I don't understand why we need to have this behind a function, can you explain?