fix category edit js initialization