update output refs when question ID changes

hmm, itext outside of javaRosa.js. Can we pull the itext-related parts in there? Maybe add a method `getSingleMatchingMug` here on the form and make javaRosa.js use it?