Communication between Titanium and webpage running remotely