add new js function for joomla article select for 3.x