Optimization about global variables send to jade.