Changed the order of exporting uuid for using browserify app beside requireJS app

Changed the order of exporting uuid by module-type first, because if using browserify to build an app it will conflict with existing apps using requireJS. For requireJS apps it does not matter if it is first tested for existence of module.exports.