I think these vars are used enough that you can set them as properties on the object:
```javascript
var CreatePage = {
    articlePath: mw.config.get( 'wgArticlePath' ),
    visualEditorEnabled: !!mw.config.get( 'wgVisualEditor' ),
    // ...
};
```