Generate hidden id for JavaScript objects