change

    for(var key in obj)

to

    Object.keys(obj).forEach(function(key) {});
0.0.8