jsbridge mac implementation