removed non-jquery compatibility functions