When adding ->AjaxActivation->active() allow an options array so you can specify where the javascript is output