add mozjs optional dependencies

Signed-off-by: xiehuc <xiehuc@gmail.com>