There are other kind of protections you could implement, maybe a simple captcha, a question human beings can answer printed randomly (like "what colour is an orange?" or "write the result of 1 + 1" or similar), a cookie being printed, a hidden input field with a random name being checked, etc. And it would be better if you remove the JS one and add some of the ones I mentioned, like the hidden input + the question.
There are other kind of protections you could implement, maybe a simple captcha, a question human beings can answer printed randomly (like "what colour is an orange?" or "write the result of 1 + 1" or similar), a cookie being printed, a hidden input field with a random name being checked, etc. And it would be better if you remove the JS one and add some of the ones I mentioned, like the hidden input + the question.