Added
var PluginError = require('gulp-util').PluginError;
to the scripts.js file