how to convert JavaScript embed code into WordPress script embed code

(Originally posted here: but I’m not sure how to subscribe to comments there, and I wanted to see if they provide different info than from you guys. Thanks!)


How do you turn a script’s embed code into the proper scripting for WordPress (e.g. functions.php, footer.php, both)?

For example:

<script src="" type="text/javascript"></script>
<script type="text/javascript">
new JotformFeedback({
formId : "123",
buttonText : "Wishbox Form",
base : "",
background : "#F59202",
fontColor : "#FFFFFF",
buttonSide : "bottom",
buttonAlign : "right",
type : 2,
width : 400,
height : 250,
instant : true