Another missing global

Signed-off-by: emanuele <emanuele45@gmail.com>
Removing some duplicated javascript (generateDays and monthLength in particular)

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #136 from emanuele45/master

messing with javascript :P