adding indeed code to page

I would like to add indeed affiliate code to a page and it uses javascript but when I save it the code changes. What can I do to save the code correctly?