'var' wasn't being used, resulting in an additional property on Window object

Added the var keyword.