Playing a little with coffeescript and Rails 3.1.0.rc4. Have this code:
yourMom = (location) -> console.log location yourMom \"wuz hur\"
an easier way to share global methods/variables is to use @ which means this.
@yourMom = (location) -> console.log location yourMom "wuz hur"
Nicer syntax and easier to read, but I don't encourage you to create global methods/variables