changed example to javascript
updated dependencies