fix javascript to populate package registry table correctly