fixed invalid code in example

wow such javascript