[Ref #4890] Add metadata.js into the 'js' config.