This gulp plugin will concat your javascript files based on the useref annotation in html.