Notes and some code

added a few notes in JS Doc and some code in calendar.js and
dashboard.js