Switched from custom umd task to grunt-umd and fixed namespace loading