added var to fixed google closure compiler warning