Adding code example for javascript
mend