I think you should remove the triviality checks and only run code which is explicitly FOSS licensed.
The existing triviality metrics are flawed, only allow unrealistically hobbled code and it's possible for me to write an arbitrarily complicated non free program which librejs will run.