Set function 'style' inside definition of prototype