using jquery methods

for creating the template for the modal window, instead of string
concatenation