mapping control java script template quote issue