Working with Ruby and JavaScript