media.js now passes jslint