empty variables js fix