wrap tm.date and tm.string in requirejs and add i18n support