example rewrite, custom namespace, AMD/CommonJS support