js applied to html text with images, text and toggling