Replace deprecated JFactory::getURI() with JURI::getInstance()