Rapidly turning into a disaster of a mess.
Never mind that coffeescript nonsense. Try a more manual method.
(May give unexpected results with turbolinks, but we'll see.)