PackedEditor: fixed a direct console.log() call
editor: moved HTML generation of blocks to a separate _get_block_html() function