Modify HTML markup on rendered blocks with hook_preprocess_block and add JS to page if necessary with hook_block_view_alter