Fixed javascript snip.
Merge pull request #175 from Sheile/settimeout-snippet

Fixed javascript snip.