Add example.js. Fix rrule bug returning undefined dates