It's premature optimization. The extra time taken for a scope lookup is completely insignificant compared to the network costs in loading the script.
Perhaps if this was inside a tight inner loop, I could understand, but here it's completely unneccessary.