<?php $myScript = file_get_contents('your-script.js'); echo "<script>".$myScript."</script>"; ?>
<?php // Break the echo into few parts to avoid conflicts when using single or double quote in JS echo '<script type="text/javascript">'; echo 'document.write("Hey world!")'; echo '</script>'; ?>