Update demo.js
    - [js] added touch event for the mobile menu
    - [js] orgranized the code