added js to show error

Bruh