Have you added a try catch around the JavaScript code?
If you have and still can't see the problem, try adding print statements in the code generating
content for the repeat control.
Try to post more information on your problem in the forum preferable with some code.
then you will get help faster.