8051 emulator in javascript