chore: move getBlockElements to Angular.js