server is working but getting js errors