Not happy with this code, it seems that for generating a simple dom structure in gquery we need to resort to GWT mechanisms.