add a missing js var