Interactive DOS prompt in an HTML5 canvas