This looks good, you can't use purl_inited() because this function is called the first time from within the init.  This will fix the issues caused when ahah_init is called by spaces