Store block params in data attribute

Fixes #494
/cc @dfilatov , @veged