The Tor web browser disables most (if not all?) Javascript by default as a security measure.
Avoiding Javascript is an advantage if you want your website to be accessible to Tor users.
If your website only handles basic things like form inputs and it breaks when Javascript is disabled, then you have not made it accessible.