Seems like you only use $el.data() here. Can you inject data directly. Easier to test, better DI, etc.