Tried embedding bubble popping app on my site. "Parsing error: Unexpected token" is being shown.

I am building a website in which I want to embed the bubble popping game. The code and .swf is loaded in my media gallery but this error is being shown. I am copy-pasting the code here, if someone can help me with it.

$w.onReady( function () {

});

You can’t add html code straight into javascript like that.

It will probably need to go in a html iframe on your page.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site