fix window.close for weixin browser