Adapated calendar for usage as a proper stateful plugin with jQuery PluginCreator.