fix bugs for firefox remote debug, now can debug via simulator & firefox