Why is my Variable not in scope?

Why not convert Google On? to a pure function?