Javascript BTC-e trade and public API implementation