Added missed var definition in JS.