Chris, I hesitate to give my advice because I am a haskell newb.
I haven't tested this, but in theory you should just be able to create a deafult-layout.julius and that should be invoked with default-layout.hamlet
What I have done for myself is created a widget inside of Foundation.hs which I then call within my default-layout.
The type synonyms aren't "there yet" in Foundation.hs so the type signature for the widget is
myEverythingWidget :: GWidget sub App ()
myEverythingWidget = do
addScriptRemote "/static/js/myJsLibrary.js"
toWidget[julius|
$(function(){ alert ("page loaded"); {);
]
Then within your default-layout.hamlet
just call your widget normally
^{myEverythingWidget}