fixes gulpfile and minor syntax errors