Update block.js

need to improve function 'addBlocksCodeMap' for blocks loaded from example