Extract script and output component as class

```js
typeof object[k] === 'function'
```