Yeah, you're apparently trying to call this on the client side, and I guess not even calling it as a method? Also, getID doesn't work like that. It's a method of %item, which is a variable. Copy-paste and guesswork will only get you so far.
heheh, I'm very bad at this, but I thirst for victory. Trial and error is all I know.