move loadBlock into blocks.js