Updating scanMedia.js to fix Class Not Found Error