fixed curator js in a way