Adding in the backwards compatibility Object.keys() and Array.prototype.forEach()

Object.keys() and Array.prototype.forEach() are not available in anything that uses ECMAScript 4 such as IE7 or IE8.   Adding in a check to see if either of these functions exist already before declaring the new functions.