I have several answers to your questions - at least from my point of view. The answers to such questions really depend on your experience and preferences.
1) , JavaScript , JavaScript.
2 3) JavaScript . JavaScript , , , , , . , ( ), . .
js , , . , .
4) , js , , - , , . Unobtrusive js .
5) . .
, Rails 3 js, . html, js, logic, , , . , .
, .