Online advertising overtakes TV sales for first time