move init code to .on('init') and fix selection setup to work with single date calendars
move didInsertElement to .on('didInsertElement')