merge html to scala