Fixed critical bug with jquery's '$' getting removed if it already existed