You should be able to call a gadget in content by using the Execute_PHP plugin:
Please follow these steps:
Hope this helps.
What do you mean by 'connect'?
Or you can write js in the source code of an editable area.
Including js in a new section (type "File Include") as mishal described it for PHP (#7147), should work as well (I haven't tried yet).
Find out more about our Provider Spotlight