fix the issue when UIWebView javascript returns array