Declaring an undeclared variable in JS