extract variables
fix gen_web_demo.py