I have been trying to add a javascript snippet to the layout, but somehow it converts it to some other code so that it does not work