Fix js for Joomla 3.2