jsbridge mac implementation

works with monomac and xammac