Moved building of month-control from javascript into php-backend.