CoffeeScript / jquery - when appending a DOM element we need to use on rather than click to teh parent div.