First step to fix the build

After having fetched your WIP I couldn't build any more. It turned out that a missing closing bracket was failing the build.

I reckon that more can be done since that the corresponding file in YUI3 is more complex but at least I can build now :-)