Host-based Card Emulation with JavaScript