modified the bridge to immediately return value from a javascript handler.