High-level Javascript API for TREZOR