I have the following code in one of my views:
Analyze
And, the .js.
Change this:
analyze = ->
To this:
window.analyze = ->
Functions in coffeescript are not global by default.