fixed logger.tpl to use the new requirejs code