Here is where i'm adding the js file. In rails you need to use the javascript_include_tag instead of the <script... tag if it is going to be served through the asset pipeline (eg if it is in the app/assets folder).