wait for metadata, mv js