Use $.data instead of $.attr

This allows for complex items instead of simple strings.