Revert "Revert "update max script demo""

This reverts commit 4e35dd13ef9b85df0fe31a77965514eba30d1199.