Generate uuid in JS. Uses http://www.broofa.com/Tools/Math.uuid.js