Missing var in js file