looking at it, it's because you have your url in the link.
basically, you have the "add a tab" code from elsewhere in the forums, and you need to change the url accordingly.
even after i fixed that, it doesnt' work for me.
I end up with this:
success()) { $ret = array(); for($i=0; $ival)...