Update Marionette example

Small improvements:

+ update `ui` for readability and functional testing
+ make app a window global for functional testing