Slightly refactored initComponent() to make class extendable ()
Refactored class to become a sub-class of Day.js. Removed duplicate code (now 235 lines versus 510 lines before)