changed ajax dataType to 'script' from 'json'. Changed respond_to format.js
idea is appended from ajax call with javascript and not json via save.js.erb. working on formatting
changed id to data-id
changed textbox clearling method to '.find input'