He address that with using chrome plugins and code verifiers. Not the ideal or most convenient solution obviously.
But you also can't assume the JS is hosted and delivered by the same server the data is being transmitted through. JS is extremely portable.