Rails Button javascript add/remove functionality as shown in Ryan Bates RailsCasts (#403 Dynamic Forms)