ensure script gets inserted only once per page