Mautic issues with forms and JS??

I created a form and put the JS code that’s automatically generated, when the form is created, on my website page. But when someone tries to submit the form it doesnt send to another URL or open the facebook and twitter pop-up for integration, how ever the inputted data is being received by mautic, only the facebook and twitter isnt receiving due the issue that the pop-up doesnt open for the user to autorize access to his data. My PHP is 7.0

I created a form and put the JS code that’s automatically generated, when the form is created, on my website page. But when someone tries to submit the form it doesnt send to another URL or open the facebook and twitter pop-up for integration, how ever the inputted data is being received by mautic, only the facebook and twitter isnt receiving due the issue that the pop-up doesnt open for the user to autorize access to his data. My PHP is 7.0