Stores params in data-bem

Fixes #494