Adding a comment box on item's pages

Ouch, sorry to hear that. Can’t see the problem and everithng work well for me.
Did you try to debug the code?