Declared a variable

I removed an alert and declared a variable.