update testing code, update library
index.html, lib/blocks.json

* update javascript testing code
* update Blocks library