small nit, you can put the var here, that is more idiomatic for mozilla code.