Fixes in Pomises and Implementation of getScript in Ajax