ALWAYS ALWAYS ALWAYS use var when declaring a variable.  otherwise, it is appended to global space (window.varName) and can be accessed and overwritten by ANY code anywhere.  very dangerous.  globals are bad.