set debug var before loading js file