Going crazy over onItemClick

I don’t see any click event handler in the code you posted.
I only see an onItemReady handler (that is used wrong).
Please elaborate regarding what you’re trying to do.