just move crucial bits in another language and use webassembly. so good section of your code is in compiled binaries hence blocking anyone stealing your IP. also at the moment they just change some bits I don't think it'll be long before they can just recreate a new project with different code but with exactly the same functionality and then you got no protection afaik(although not a lawyer so not 100% sure).