added dope check for missing js file