Renaming Javascript objects to plural