Fix CommonJS support

module.exports is not part of CommonJS and only few CommonJS platforms
support it
exports is the standard way to export a module API
changing the reference of the exports object is also not standard and
not always supported
A related fix has also been recently provided on the Mustache.js project