Bitcoin script implementation for NodeJS and browsers