J2ME VM in JavaScript