Integrity on custom script

Is there any integrity check in js scripts on the server to avoid modification on the client side? Or is it necessary to develop the same on the server side in python?