returns a cleaned selector after stripping invalid characters for defining modules: [,], - to camelCase
function getSanitizedSelector (selector) {
            return selector
                .replace(/-([a-z])/g, function (g) { return g[1].toUpperCase(); })
                .replace(/\[|]/g, "");
        }