class Content { private width : number = 20; private height : number = 15; private displayCanvas : HTMLCanvasElement; private videoCanvas : HTMLCanvasElement; constructor () { this.displayCanvas = document.getElementById('display') as HTMLCanvasElement; } } (function main () { new Content(); })();