Update mediaCheck.js