Pure stake API service in javascript

If you are using PureStake API, you need to use the code samples there:
https://developer.purestake.io/code-samples

The way the token is sent in PureStake API is slightly different.