Merge pull request #1 from Tridude/master

support for leap years
Added json input of events. Redid move month function. Added comments to functions.
Added hidden input of event index
Added extra condition for load events
Added simple popup on .day click and closes when clicking anything else