The variable ```value``` wasn't defined

I don't know why they are specified in the function header when in the end they're always read out of the ```arguments``` array, but now ```val``` at least isn't defined in the global scope anymore.
Merge pull request #1 from ureimers/patch-1

renamed "val" to "value"