If I take these lines from your script:
newVar("RT").global().set( () => Date.now()) , getText("Segmento17") .remove() , getText("Segmento18") .remove() , getCanvas("Segmento1718") .remove() , getVar("RT").set( v => Date.now() - v )
then you’re not tracking reaction times, you’re tracking how long it takes for the browser to remove the two Text and one Canvas elements from the page (most likely this should only take a few milliseconds)
I suspect that what you want instead is to surround the Selector elements with the Var commands. You can just create as many Var elements as you’d like to surround each Selector element, just make sure to give them unique names (e.g.
getVar("RT1516"), etc.) and also make sure to reference each Var element in the
log commands on the closing parenthesis of
newTrial like the one you currently have