initiated code for working with HTML data