Implement property_exists()/isset()/empty() on wrapped JavaScript object

Fixes issue #32.