Moved primitive manager and group js files to shared folder