inheritance in javascript:
if (typeof Object.create !== 'function') {
Object.create = function (o) {
function F() { }
F.prototype = o;
return new F();
};
}
var newObject1 = Object.create({key1:'valuekke'});
var newObject2 = Object.create(newObject1);