Added a splitNamespace helper to utils.js