supporting js to disable hide_metadata