Exposed function for capturing from JS code.
Merge branch 'master' of github.com:matthewtole/rockshot-javascript