Use brackets for if statement to avoid SyntaxError
Merge pull request #1 from migueldvb/examples

Thanks Miguel!