Catch exception if JavaScript files are not available.