Thanks guys! And sorry, I answered so late...
The extensions you suggested are really cool. I'm now trying to learn something from the way variables are updated in the second one, even if it seems very similar to what I did in my trials.
The problem I'm having also comes from an error reported in the console, during the execution time. It states "error from engine" and contains an error object in which the result "operation aborted" is written.
I don't know what's the cause, and I can't use the first suggested extension, because of style-related reasons.
Shall I post the code?
Ok, I didn't know that. So I shouldn't worry about that error message.
Would it be correct to assume that the operation is aborted while trying to update the variables (just before doing the actual value assignment)?
That's what it seems like, at least by looking at the results I get in the browser console.