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.

NewCommand line for non-techies

I've published 37 videos for new developers, designers, UX, UI, product owners and anyone who needs to conquer the command line today.

Want more?

Posts, web development learnings & insights, exclusive workshop and training discounts and more, direct to your inbox.