Copies url to clipboard, fixed bad code