Updated to check for versions on requirejs data-main and js