On the client, a global variable is not "global" but "window".