move HTML out of JavaScript code