Added function to make UID; Fixed JS to work based on the new UID