That's not quite right. The JS source code is committed on chain via a contract interaction and every minted token gets a token hash which, when run through the JS source, can recreate the art.
But...the execution environment is still your web browser and non-animated Art Blocks NFTs still have a "preview" stored off-chain like most other. Neither running the code in your browser or retrieving the preview is an on-chain operation.