Fix global js var