Set styles function on instance.

This seems much more straightforward than overriding the method on the prototype.