title: Call extension method from Javascript Visualforce
body: <p>I've been trying to call an extension method from my visualforce page. </p>
  
  <pre><code>&lt;apex:page title="Title" standardController="Account" showChat="true" tabStyle="Account" standardStylesheets="true"  showHeader="true" extensions="AccountExtension"&gt;
  
  &lt;script type="text/javascript"&gt;
  Sfdc.onReady(function() {
          if({!isTrue}){
              // Do Something
          }
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>My method in my extension:</p>
  
  <pre><code>public with sharing class AccountExtension {
      public boolean isTrue(){
          return true;
      }
  }
  </code></pre>
  
  <p>When I try to save it, I'm getting the message: 
  Error: Unknown property 'AccountStandardController.isTrue'</p>
  
  <p>Any idea? </p>