Update src.js

add this.hasBlock, now the script can test if it has a block associated.