// CORE module, abstracts environment-specifics var CORE = function(){ /* * blatantly ripped off from Douglas Crockford */ var modifyLanguage = function(){ Function.prototype.method = function (name, func) { if (!this.prototype[name]){ this.prototype[name] = func; return this; } }; Function.method('inherits', function(Parent){ this.prototype = new Parent(); return this; }); Array.method('each', function(f, index){ for (var i=0; i