Moving stylesheet to object model