Fixed JS error on 404 page