document UUID JavaScript method