Refactor glob.js
Refactor glob.js

Added function `importGlob()` to enclose operations and improve error handling.

stephenbe/locomotive-boilerplate,locomotivemtl/locomotive-boilerplate,stephenbe/locomotive-boilerplate,stephenbe/locomotive-boilerplate,locomotivemtl/locomotive-boilerplate