Here are my changes as attachment.
I included them in the trunk and it compiles now.
I have 2 issues with this patch however:
- jquery menu example does not seem to work right
- JsImport (and the other) seems to have all over the contextPath
appended, but according to the javadocs this is not necessary:
------------------------
Please note if the given href begins with a "/" character the href will
be prefixed with the web application context path.
------------------------
(I guess the docs are not complete about this)