Localhost script was breaking the site + slowness