create html strings by using JavaScript