Update some code examples on the "Working with JavaScript in Rails" guide.