back port ajax fixes and add $.getScript