I don´t think it can be improved without syntax. My recommendation is to put everything in a module and export a function. Your page should then include a small call to that function:

```js
YUI().require('myapp', function (Y, imports) {
  imports.myapp.start();
});
```