js: if no date field, create an empty one in order to draw the box