create new ajax script and attach to dom