Prevent creation of double ajax containers

The script right now can add up to two nested ajax containers, this fixes that