Fix invalid if/else JavaScript example
Merge pull request #3 from juliepagano/master

Fix if/else javascript example