Load json for dynatree synchronously to prevent dynatree from stealing focus
fixes #1893