create function to add HTML by JavaScript