<?php
include_once($_SERVER['DOCUMENT_ROOT'] . "/application/core/config.php");
header("Content-Type: application/javascript");
?>
$(document).ready(function(){
....................................................................
<?php
#include_once($_SERVER['DOCUMENT_ROOT'] . "/application/core/config.php");
header("Content-Type: application/javascript");
?>
$(document).ready(function(){
alert('Hello from SIMPLE JS code!');
});