added module DEMOAPP, refactored into own js file