turning a jquery function into a normal function
<p>I inserted some jquery code which is designed for an feature of one page into my common js file. Now all pages are throwing an error and I think it is because I don't understand the difference between a jQuery function and a normal one.
The jQuery one starts off like this:</p>

<pre><code>$.fn.googleMap = function(address, options) {
</code></pre>

<p>and is called from within the $(document).ready(function(){ like this:</p>

<pre><code>$("#location div").removeClass().googleMap(""+location1+"");
</code></pre>

<p>I tried (just in case) to do: function googleMap(address, options) { ...but then I am not sure if that 1. works and 2. how to trigger it from within "$(document).ready" part.</p>
