fixing example syntax

open and close-stache were missing from the `if (!error)`
Merge pull request #16 from jeffmarshall/master

Fixing syntax in js example.