Refactor gulpfile.js