We should avoid using globals in JS. Do we need these variables to be globals?