Reverted wrong change to $options = JHtml::getJSObject($opt);