HTML5 outliner (JavaScript)