Replace special stanzas correct hierarchy of js objects.