js: use data attributes to initialize plugin