Updated uuid() to comply with JSLint.