Issue #2205155 by jibran, rteijeiro: Convert custom_block.js into a library.