in config.php , its possible to make another variable and call it in view
$root="http://".$_SERVER['HTTP_HOST'];
$root.=str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['base_url'] = $root;
$config['img_url']=$root.'assets/img/';
$config['jsctrl_url']=$root.'application/JsController/';
and call it like
<script type="text/javascript" src="<?php echo jsctrl_url();?>Account/register.js"></script>