So it looks like perhaps you didn't copy the whole script, missing a little bit at the end I assume.
![0EM50000000RL6R.jpg 0EM50000000RL6R.jpg](/t5/image/serverpage/image-id/8572iC31F35E2A1758CCF/image-size/large?v=v2&px=999)
So using Google Chrome (right click, Inspect Element, bottom right look at errors), it looks like you're missing a } and a </script> at the end of this function to close out the javascript block. See how it just ends in </div> without first having a </script> to end it?
Then there's a 2nd error on the page with a custom variable.
![0EM50000000RL6W.jpg 0EM50000000RL6W.jpg](/t5/image/serverpage/image-id/8524i699DD9A58C46F8F9/image-size/large?v=v2&px=999)
Which that seems strange to me as you are defining it, but for some reason it isn't happy with the definition. Or perhaps this needs to be in a single < script> block, both the definition of the variable, then the marketo munchkin code, then the use of the variable.
Good luck getting this debugged. I think that this is where your problem lies.