why is my site returning a JS error