NXP-15250: do not target head for script inclusion which does not work in case of ajax request