Code for blog "Adding Fields on the Fly" with Ruby on Rails Nested Forms