Array 'javaScripts' doesn't exists on OCS Smarty class. Refactoring