Refactored $.Uuid to preserve uniqueness of ids.