Changed demo.js
Changed demo.js
Inheritance, callbacks, events, styles, general optimizations