Added Array.prototype.decay

Also fixed a couple of syntax errors
Merge pull request #10 from woodcocksquires/master

Added Array.prototype.decay