[fix] remove all redundant code from constructor, move data-attribute changing to inject