Create blocks.js

dumped all content from jsfiddle.
TODO: sort this out into an example and function