title: Raphael is not defined using g.raphael-rails and raphael-rails gem
body: <p>I'm trying to do generate a sample bar chart for JSON data generated through Rails.</p>
  
  <p>To start off, I'm just trying to simply see if my Rails app can generate the barchart.html from the <a href="https://github.com/DmitryBaranovskiy/g.raphael/blob/master/test/barchart.html" rel="nofollow">example</a> provided in <a href="https://github.com/DmitryBaranovskiy/g.raphael" rel="nofollow">g.raphael github repo</a> . </p>
  
  <p>I'm using <a href="http://rubygems.org/gems/raphael-rails" rel="nofollow">raphael-rails</a> and <a href="http://rubygems.org/gems/g.raphael-rails" rel="nofollow">g.raphael-rails</a> gem in my Rails 3.2.11 app.</p>
  
  <p>Currently when I try to hit /companies/company_division_stats in the browser from my <a href="https://github.com/boddhisattva/stores" rel="nofollow">sample code</a>,  Firebug throws the below error:-</p>
  
  <pre><code>ReferenceError: Raphael is not defined in corresponding to the line of code :-
  var r = Raphael("holder")
  </code></pre>
  
  <p>The documentation from the two gems doesn't specify the need of including any js files to my application.js .</p>
  
  <p>Interestingly,</p>
  
  <p>When I just try to do a run of the sample plain HTML below in my browser, I also get two errors.</p>
  
  <p>1.</p>
  
  <pre><code> ReferenceError: Raphael is not defined
   F.prototype = Raphael.g;
  
  Reference g.bar.js(line 419)    
  </code></pre>
  
  <p>2.
       <code>TypeError: r.barchart is not a function</code></p>
  
  <p>Sample HTML:-</p>
  
  <pre><code>&lt;!--&lt;!doctype html&gt;--&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;gÂ·RaphaÃ«l Static Bar Charts&lt;/title&gt;
    &lt;link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" charset="utf-8"&gt;
    &lt;link rel="stylesheet" href="css/demo-print.css" type="text/css" media="print" charset="utf-8"&gt;
    &lt;!-- Throws same error when using the raphael and g.raphael gem--&gt;
    &lt;script src="https://raw.github.com/DmitryBaranovskiy/g.raphael/master/g.bar.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
    &lt;script src="https://raw.github.com/DmitryBaranovskiy/g.raphael/master/raphael-min.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
    &lt;script src="https://raw.github.com/DmitryBaranovskiy/g.raphael/master/g.raphael.js" type="text/javascript" charset="utf-8"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" charset="utf-8"&gt;
        window.onload = function () {
            var r = Raphael("holder"),
                    data1 = [[55, 20, 13, 32, 5, 1, 2, 10], [10, 2, 1, 5, 32, 13, 20, 55], [12, 20, 30]],
                    data2 = [[55, 20, 13, 32, 5, 1, 2, 10], [10, 2, 1, 5, 32, 13, 20, 55], [12, 20, 30]],
                    data3 = [[55, 20, 13, 32, 5, 1, 2, 10], [10, 2, 1, 5, 32, 13, 20, 55], [12, 20, 30]],
                    txtattr = { font: "12px 'Fontin Sans', Fontin-Sans, sans-serif" };
  
            r.text(160, 10, "Single Series Chart").attr(txtattr);
  //          r.text(480, 10, "Multiline Series Chart").attr(txtattr);
  //          r.text(160, 250, "Multiple Series Stacked Chart").attr(txtattr);
  //          r.text(480, 250, 'Multiline Series Stacked Vertical Chart. Type "round"').attr(txtattr);
  
            r.barchart(10, 10, 300, 220, [[55, 20, 13, 32, 5, 1, 2, 10]], 0, {type: "soft"});
  //          r.barchart(330, 10, 300, 220, data1);
  //          r.barchart(10, 250, 300, 220, data2, {stacked: true});
  //          r.barchart(330, 250, 300, 220, data3, {stacked: true, type: "round"});
        };
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body class="raphael" id="g.raphael.dmitry.baranovskiy.com"&gt;
  &lt;div id="holder"&gt;&lt;/div&gt;
  &lt;p&gt;
    Demo of &lt;a href="http://g.raphaeljs.com/"&gt;gÂ·RaphaÃ«l&lt;/a&gt; JavaScript library.
  &lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm really not sure what I'm doing wrong from my end. Any inputs on what I could be missing ?.</p>
  
  <p>Thank you.</p>