Create decorator.js

Bonus assignment 4.2 decorator function.
Create string.js

Assignment 4.1. I think i made an error with turning this assignment in previously, possibly in the wrong directory.
Merge pull request #186 from seasean/master

Create decorator.js