title: stringByEvaluatingJavaScriptFromString does not work
body: <p>I am trying to call a javascript function from loaded local html file in <code>UIWebView</code>
  but it deosn't respond</p>
  
  <p>it look like this</p>
  
  <pre><code>NSString *script=[NSString stringWithFormat:@"sample()"];
  
  if (tekst.loading) {
      NSLog(@"Loading");
  } else {
      NSLog(@"Fully loaded");
      [tekst stringByEvaluatingJavaScriptFromString:script];
  }
  </code></pre>
  
  <p>and in html</p>
  
  <pre><code>&lt;head&gt;
  ....
  &lt;script type='text/javascript'&gt;
  function sample() {
  alert('Paznja');
  }
  &lt;/script&gt;
  ...
  &lt;/head&gt; 
  </code></pre>