So it looks like perhaps you didn't copy the whole script, missing a little bit at the end I assume.
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.
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.