Build curved tabs only once document is complete

What do you think of turning this into `CurvedTabs.init()`?