removing 404s and js errors