Firefox-JS: Fixed a memory management issue. Fixed object detection in client wrapper. Minor bug fixes and improvements.