Script not working correctly

Trying to implement the following script as mentioned in the steps for ” Basic Steps for Embedding” in here:

But instead of the form to open as a popup it opens in a new tab, which isn’t how it’s supposed to work. Please check the chat transcript for more info.