Automatic inclusion of Javascript in CakePHP

Earlier, I wrote about $scripts_for_layout and I was looking for a solution to automatically load js files into your layout. Well, I think the solution might be in this presentation from Felix Geisendorfer. At slide 20 he starts talking about this.Has anyone seen this, or did you already try it?Let us know!