Small typo in JS code

Hi Reg! I was reading through "Function and Method Decorators" and noticed a small typo in the code. Here's the fix. 

Thanks a lot for the excellent writing!