Bitmarket.pl API client in Javascript