Fixed problems with grunt-browserify v2

Problems related to grunt-browserify v2 not expanding globs,
fixed by expanding the files in Gruntfile.js with the use
of 2 helper functions.
using support for globs in 'external' config
using expandFiles on an array