uses data() instead of attr() for fetching link params, issue #307