[javascript] Declaring a boolean in JavaScript using just var