removed pre-jquery compatiblity functions