micro optimization to touch the dom twice during the esprima source computation