JText::script() is not loading Joomla core.js. Fixes #3078