Add var to fix javascript error in Firefox.