HTML type is used for formatted HTML display. You can use WYSIWYG editor for your block content. This block can be also used for JavaScript code, but you <span style="color: red">need to paste it in SOURCE mode</span>.