Commenting out turbolinks in my gemfile didn't help
Assuming that you also did bundle install then it is not that problem,
to research how to debug js. Start by sprinkling assert statements
through the code. But as I said debugging js is not what this list is
Also, how do i move
Do you mean you don't know how to code js so that it resides in
separate files (which is not a ROR issue) or you specifically don't
know how to use the rails assets. If the latter then  should help.
Note that the fact that you have included the js in the web page is
not likely to be the cause of your problem, it should work there but
it is considered poor practice.