Offline transaction signing for Bitcoin in HTML5 and JavaScript