transition to the new structure (with JQuery)