minor adjustment to work better with datejs