fix js errors in gulpfile