updating metadata registration knockoutjs code