Actually add the javascript to a footer stack. Note that this messes up the bottom of the publish page, probably needs to have the CSS tweaked.