If you ever wondered how to include javascript in the head section or how to include other content in the body when using a CometActor the solution is to override fixedRender:
The resulting html:
Notice that Lift is using two div's, and during a reRender(false) only the inner one is updated.
Unfortunately the Alert doesn't take a JsCmd, I would prefer writing: