$('#proceed').click(function(){ var part1 = "luke"; var part2 = Math.pow(2,6); var part3 = String.fromCharCode(part2); var part4 = "seeallmedia.co.uk"; var part5 = part1 + String.fromCharCode(part2) + part4; document.write("Please email us at " + part1 + part3 + part4 + "."); });