the js optimizer doesn't currently use flags like `--something`, instead we just pass things like asm, last, etc. as params, see how those are handled. please change this to be consistent with those.