As he has stated, that is a lot of code, and a little out of org to repo. I can tell you this thouhg, the way I nromally implement helper functions for jsViews is like this following snippet:
$.views.helpers({
onAfterChange: function (ev)
{
if (ev.type == "change")
{
ProcessUpdatedView(this);
}
},
Testing: function (fromResponseListFlyout, length, index)
{
return fromResponseListFlyout + length + index;
},
matchCurrentLanguage: function (languageID)
{
return languageID == PageSettings.activeSurveyLanguage.LanguageID ? true : false;
}
});
And just call it from the views object directly. I can't setup all of your code to test, so try to make a jfiddle for it, and then I can track your bug right down. I work with jsViews all day with it being about 95% of my companies UI.
I would love to solve this for you, so set up the fiddle, and we can work it out. :) Happy coding.