Based on the Prototype namespacing made easy, except this doesn't require Prototype.

 String.prototype.namespace = function(separator) {
  var ns = this.split(separator || '.'), p = window, i;
  for (i = 0; i < ns.length; i++) {
    p = p[ns[i]] = p[ns[i]] || {};

This isn't so much to ditch Prototype, but to encourage using namespacing.

UK EVENTAttend 2024

The conference for people who are passionate about the web. 8 amazing speakers with real human interaction and content you can't just read in a blog post or watch on a tiktok!