Added Array.prototype.decay

Also fixed a couple of syntax errors