Resolving bug in MetadataResultsToolbar.js