Generate RFC-compliant UUIDs in JavaScript