Your script uses ajax and checks the url. The conditional asks if response === 1. In safari it does not so the file never can get removed. See scripts.js