diff --git a/bridge.js b/bridge.js
index <HASH>..<HASH> 100644
--- a/bridge.js
+++ b/bridge.js
@@ -164,7 +164,8 @@ function setup_page (page) {
 		return lookup(page, prop);
 	}
 	page.setProperty = function (prop, val) {
-		return lookup(page, prop, val);
+		lookup(page, prop, val);
+		return true;
 	}
 	page.setFunction = function (name, fn) {
 		page[name] = eval('(' + fn + ')');
@@ -203,11 +204,11 @@ var global_methods = {
 	},
 
 	getProperty: function (prop) {
-		return phantom[prop];
+		return lookup(phantom, prop);
 	},
 
 	setProperty: function (prop, value) {
-		phantom[prop] = value;
+		lookup(phantom, prop, value);
 		return true;
 	},
 }
Also, use lookup for global properties