I've tried using this code to call the js on the page:
{source}<?php
$doc->addScript( JURI::root( true ).'https://bestbibleversion.com/mycss/sticky2.js' );
?>{/source}
{source}<?php
$myscript = "
alert('This is JavaScript');
";
$doc->addScriptDeclaration( $myscript );
?>{/source}