Separate mqHelper from demo app

New file demo.js in the website folder contains the app-specific code