Add ajax snippet