fix issue with jQuery attempt to be used before jQuery is loaded
restored most pre-existing links