Datepicker: fix jshint issues, CGL

Fixed all jshint and (hopefully) CGL issues. 

Some unit tests fail. I will tackle these as soon and have an overview about all open tasks and the wiki is updated accordingly.