localizing javascript to consider i18n day and month names