check external JS file is valid or not.