bug in main.js for VideoJS on initial page load